package cn.anc.aonicardv.net;

import cn.anc.aonicardv.bean.FirmwareBean;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Streaming;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by yangdai on 2017/6/7.
 */

public interface ApiManager {

    @Streaming
    @GET
    Observable<ResponseBody> downloadFile(@Url String fileUrl);

    @POST
    Observable<String> uploadFile(@Url String url, @Body RequestBody Body);

    @GET
    Observable<FirmwareBean> checkFirmwareUpdate(@Url String url);

}
